import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login.vue'
import Home from '@/views/Home.vue'
Vue.use(VueRouter)
export default new VueRouter({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    //重定向，打开浏览器直接跳到指定的页面
    {
      path: '*',
      redirect:'login'
    },
    {
      path:'/home',
      name:'home',
      component:Home
    }
    
  ]
})



